package com.myspring.aop.eg.example;

public class CalculatorImpl implements Calculator {

    @Override
    public int add(int a, int b) {
        int sum = a + b;
        System.out.println("sum = " + sum);
        return sum;
    }

    @Override
    public int subtract(int a, int b) {
        int sub = a - b;
        System.out.println("sub = " + sub);
        return sub;
    }

    @Override
    public int multiply(int a, int b) {
        int mul = a * b;
        System.out.println("mul = " + mul);
        return mul;
    }

    @Override
    public int divide(int a, int b) {
        int div = a / b;
        System.out.println("div = " + div);
        return div;
    }
}
